package javaCode.chapter07.Homework.homework09;

/*
设计一个Point类，其x和y坐标可以通过构造器提供。提供一个子类 LabeledPoint，
其构造器接受一个标签值和x,y 坐标，比如：new LabeledPoint("Black",1929,230.07), 写出对应的构造器结构
 */
public class Point {
    private double x;
    private double y;

    public Point(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }
}
